local skynet = require "skynet"

skynet.init(function ()
    local name = skynet.getenv("myname")    
    local age = skynet.getenv("myage")   
    skynet.error("01baskAPI [init] name",name,"age",age,"newKey",skynet.getenv("newKey")) 
    skynet.setenv("newKey","newValue");
    skynet.error("01baskAPI [init] name",name,"age",age,"newKey",skynet.getenv("newKey")) 
    -- skynet.setenv("newKey","newValue2");
    -- skynet.setenv("myname","myname");
end)


skynet.start(function()
    local name = skynet.getenv("myname")    
    local age = skynet.getenv("myage")  
	skynet.error("01baskAPI [start main] name ",name,"age",age,"newKey",skynet.getenv("newKey"))
	skynet.exit()
end)